home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 776 b | 25 lines | [TEXT/GEOL] |
- Item 4134798 17-May-90 21:49PDT
-
- From: D2215 DacEasy, Wilma Blair,PRT
-
- To: MACDTS Macintosh Developer Tech Supt
- MACAPP.TECH$ MacApp Technical
-
- Sub: MacApp 2.0 control bug
-
- In MacApp 2.0, a control that is not shown may still end up handling a
- HandleMouseDown event if it is enabled. This is not the case with
- TView.ContainsMouse which specifically checks for IsShown. Here is the bug fix
- for TControl.ContainsMouse.
-
- FUNCTION TControl.ContainsMouse(theMouse: VPoint): BOOLEAN; OVERRIDE;
- VAR
- aRect: Rect;
- BEGIN
- ControlArea(aRect);
- ContainsMouse := { my change } IsShown & PtInRect(VPtToPt(theMouse), aRect
- END;
-
- Regards, Les Caudle
-
-